using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class CreateUser : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		this.CreateUserWizard1.CreatedUser += new EventHandler(CreateUserWizard1_CreatedUser);
	}

	void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
	{
		//add the user to the default role. Public
		string[] users = {this.CreateUserWizard1.UserName};
		string[] roles = {"Public"};
		Roles.Provider.AddUsersToRoles(users, roles);
	}
}
